import React from 'react'
import Card from '../Card/Card'
import './Confirm.css'
import BackDrop from '../BackDrop/BackDrop'
//确认框
function Confirm({ confirmText, onCancel, onOk }) {
    return (
        <BackDrop>
            <Card className='confirm'>
                <div className='confirm-text'>{confirmText}</div>
                <div className='confirm-btn'>
                    <button onClick={onOk}>确认</button>
                    <button onClick={onCancel}>取消</button>
                </div>
            </Card>
        </BackDrop>

    )
}

export default Confirm  